#include "GCircle.h"

#include <math.h>

namespace GMath
{
	GCircle::GCircle()
	{
		Center = GVector2::Zero;
		Radius = 1.0f;
	}

	GCircle::GCircle(GVector2& Center, float Radius)
	{
		Create(Center, Radius);
	}

	void GCircle::Create(GVector2& Center, float Radius)
	{
		this->Center = Center;
		this->Radius = Radius;
	}

	float GCircle::Area() const
	{
		return G_PI * Radius * Radius;
	}

	float GCircle::Circumference() const
	{
		return G_PI * Radius * 2.0f;
	}

}